package com.redfox.newapp.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.redfox.newapp.R;

/**
 * Created by redfox on 2017/3/15.
 */

public class DemoFragment extends Fragment {
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.demo_frag_layout, container, false);
        return v;
    }

    public static DemoFragment newInstance(String param) {
        DemoFragment frag = new DemoFragment();
        Bundle bundle = new Bundle();
        bundle.putString("Param", param);
        frag.setArguments(bundle);
        return frag;
    }
}
